<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>编辑配置</title>
    <link rel="stylesheet" th:href="@{/layuimini/lib/layui-v2.5.5/css/layui.css}"
          href="../../../static/layuimini/lib/layui-v2.5.5/css/layui.css" media="all">
    <link rel="stylesheet" th:href="@{/layuimini/css/public.css}" href="../../../static/layuimini/css/public.css"
          media="all">
    <style>
        body {
            background-color: #fff;
            padding: 0;
            margin: 0;
        }

        body .layui-layer-btn {
            background-color: #F8F8F8;
            border-top: 1px solid #eee;
            padding-top: 10px;
        }
    </style>
</head>
<body>
<div class="layui-form">
    <form id="configForm">
        <div class="layui-form-item"></div>
        <div class="layui-form-item">
            <label class="layui-form-label">配置组：</label>
            <div class="layui-input-inline" style="width: 320px;">
                <input id="configGroup" type="text" name="configGroup" th:value="${sysConfig==null?'':sysConfig.configGroup}"
                       autocomplete="off" th:readonly="${sysConfig!=null}" placeholder="请输入配置组"
                       class="layui-input">
            </div>
            <div class="layui-form-mid" style="color: red">*</div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">配置键：</label>
            <div class="layui-input-inline" style="width: 320px;">
                <input id="configKey" type="text" name="configKey" th:value="${sysConfig==null?'':sysConfig.configKey}"
                       autocomplete="off" th:readonly="${sysConfig!=null}" placeholder="请输入配置键"
                       class="layui-input">
            </div>
            <div class="layui-form-mid" style="color: red">*</div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">配置值：</label>
            <div class="layui-input-inline" style="width: 320px;">
                <input id="configValue" type="text" name="configValue" th:value="${sysConfig!=null?sysConfig.configValue:''}"
                       lay-verify="required" placeholder="请输入配置值" autocomplete="off"
                       class="layui-input">
            </div>
            <div class="layui-form-mid" style="color: red">*</div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">描述：</label>
            <div class="layui-input-inline" style="width: 320px;">
                <input id="configDesc" type="text" name="configDesc" th:value="${sysConfig!=null?sysConfig.configDesc:''}"
                       placeholder="描述" autocomplete="off"
                       class="layui-input">
            </div>
        </div>

        <!--隐藏域-->
        <input id="configId" type="hidden" name="configId" th:value="${sysConfig!=null?sysConfig.configId:param.configId}">

    </form>
</div>

<script th:src="@{/layuimini/lib/layui-v2.5.5/layui.js}" src="../../../static/layuimini/lib/layui-v2.5.5/layui.js"
        charset="utf-8"></script>
<script th:src="@{/layuimini/js/lay-config.js?v=1.0.4}" src="../../../static/layuimini/js/lay-config.js?v=1.0.4"
        charset="utf-8"></script>

<script>
    layui.use(['form', 'table'], function () {
        var $ = layui.jquery,
            form = layui.form,
            table = layui.table;
        form.on('submit()')

    });
</script>
</body>
</html>